<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/manager.master" AutoEventWireup="true" CodeFile="build.aspx.cs" Inherits="manager_pages_build" Title="Untitled Page" ValidateRequest="False" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2><%=ForBlog ? "Write Blog Post" : "Create Web Page"%></h2>
    &nbsp;<asp:HyperLink ID="linkPageList" runat="server" NavigateUrl='<%#ForBlog ? "~/manager/blog" : "~/manager/pages" %>'>< Back to <%=ForBlog ? "Blog" : "Page List" %></asp:HyperLink>
    &nbsp;&nbsp;<asp:LinkButton runat="server" ID="lbConvertToSmartPage" Text="Convert to a Smart Page..." OnClick="lbConvertToSmartPage_Click" /><br />
    <br />
    <asp:Panel runat="server" ID="panelStandardPageEdit" Width="100%">
        <div>
          <b class="rc">
          <b class="rc1"><b></b></b>
          <b class="rc2"><b></b></b>
          <b class="rc3"></b>
          <b class="rc4"></b>
          <b class="rc5"></b></b>

          <div class="rcfg">
            <!-- content goes here -->
            <div style="text-align:right;">
                <asp:Button ID="btnSave" runat="server" CommandName="Update" Text="Save Changes" OnClick="btnSave_Click" style="font-weight:bold" />
                <asp:Button ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel" OnClick="btnCancel_Click" />
            </div>
            <div style="text-align:left;">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPageKey" ErrorMessage="Please supply a page filename" /><br />
            <asp:Literal runat="server" ID="litGUID" Visible="false" />
            Title:
            <asp:TextBox ID="TitleTextBox" runat="server" style="margin-right:25px"></asp:TextBox>
            Page Filename: http://www.yourdomain.com/<asp:TextBox runat="server" ID="txtPageKey" Columns="25" MaxLength="25" /><span style="margin-right:25px">.htm</span><Br />
            Page Status:
            <asp:DropDownList ID="ddlPageStatus" runat="server">
                <asp:ListItem Value="0">Unpublished</asp:ListItem>
                <asp:ListItem Value="1">Published</asp:ListItem>
            </asp:DropDownList>
                    Page Template: <asp:DropDownList id="ddlMasterPage" runat="server" OnSelectedIndexChanged="ddlMasterPage_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList> <asp:HyperLink id="linkPreviewMasterPage" runat="server" Text="Preview this template..." Target="_blank"></asp:HyperLink>
            </div>
            	<FCKeditorV2:FCKeditor ID="fckContent" runat="server" 
				BaseHref="/TanashCMS/FCKEditor/" BasePath="~/FCKeditor/" Height="500px" 
				OnLoad="fckContent_Load" ToolbarSet="Basic" Width="100%">
				</FCKeditorV2:FCKeditor>
          </div>

      <b class="rc">
      <b class="rc5"></b>
      <b class="rc4"></b>
      <b class="rc3"></b>
      <b class="rc2"><b></b></b>
      <b class="rc1"><b></b></b></b>
    </div>
    </asp:Panel>
</asp:Content>

